package com.powernode.controller;

import com.powernode.dto.SmsDto;
import com.powernode.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/p/sms")
public class SmsController {

    @Autowired
    private SmsService smsService;

    @PostMapping("/send")
    public ResponseEntity<Void> smsSend(@RequestBody SmsDto smsDto) {
        smsService.phoneCode(smsDto);
        return ResponseEntity.ok().build();
    }
}
